using System;
using System.Text;

public static class Program {
	public static void Main() {
		// Construct a StringBuilder to do string manipulations.
		StringBuilder sb = new StringBuilder();

		// Perform some string manipulations using the StringBuilder.
		sb.AppendFormat("{0} {1}", "Jeffrey", "Richter").Replace(" ", "-");

		// Convert the StringBuilder to a String in 
		// order to uppercase all the characters.
		String s = sb.ToString().ToUpper();

		// Clear the StringBuilder (allocates a new Char array).
		sb.Length = 0;

		// Load the uppercase String into the StringBuilder, 
		// and do more manipulations.
		sb.Append(s).Insert(8, "Marc-");

		// Convert the StringBuilder back to a String. 
		s = sb.ToString();

		// Display the String to the user.
		Console.WriteLine(s);  // "JEFFREY-Marc-RICHTER"
	}
}
